﻿﻿<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>奢华旅行度假指南，境外旅行攻略，精选奢华酒店-禅境旅行   </title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="奢华旅行度假指南,禅境旅行,奢华酒店,奢华旅行,旅行指南,旅游攻略,旅行,度假,餐厅,酒店,高尔夫球场,米其林餐厅,欧洲滑雪场,酒庄,奢华邮轮" />
<meta name="description"
	content="禅境旅行是奢华旅行度假指南的高端旅游攻略-为追求完美的旅行者，发现纯净、自然、宁静的避世之地；精选顶级酒店；推荐当地出色的餐厅及独到的旅行体验。" />
<meta property="qc:admins" content="37432616176256421654636" />
<meta property="alexaVerifyID" content="apqJEmoBgqbLKdrHyGbVS0dY8o"/> 
<link rel="canonical" href="http://www.zentravel.cn"/>
<meta name="baidu-site-verification" content="k3om2dybCz" />
<script src="${cpath}/resources/portal/js/jquery-1.7.1.min.js"
	type="text/javascript"></script>
<link href="${cpath}/resources/portal/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="${cpath}/resources/portal/js/scrolltopLogic.js"
	type="text/javascript"></script>
<script src="${cpath}/resources/portal/js/pngFix/jquery.pngFix.js"
	type="text/javascript"></script>
<script src="${cpath}/resources/portal/js/pngFix/doPngFix.js"
	type="text/javascript"></script>
<link
	href="${cpath}/resources/portal/js/nivo-lazyslider/themes/default/default.css"
	rel="stylesheet" type="text/css" />
<link href="${cpath}/resources/portal/js/nivo-lazyslider/nivo-slider.css"
	rel="stylesheet" type="text/css" />
<script
	src="${cpath}/resources/portal/js/nivo-lazyslider/jquery.nivo.slider.js"
	type="text/javascript"></script>
<!--[if lt IE 10]>
     <script type="text/javascript" src="js/pie/PIE.js"></script>
    <![endif]-->

<script type="text/javascript">
	window.onresize = function() {
		var w = $("#slider").find("img").first().width();
		var w2 = $("#slider").parent().width();
		$("#slider").css("width", w + "px");
		$("#slider").css("margin-left", -((w - w2) / 2) + "px");

		$(".nivo-prevNav").css("left", (15 + (w - w2) / 2) + "px");
		$(".nivo-nextNav").css("right", (15 + (w - w2) / 2) + "px");
	}
</script>
</head>
<body>
	<div class="page">
		<c:set var="renderView" value="1" scope="page"></c:set>
		<%@include file="/ui/portal/head.jsp"%>

		<div class="slider-banner">
			<div class="slider-wrapper theme-default">
				<div id="slider" class="nivoSlider" onresize="doResie()">
					<c:forEach var="bigImage" items="${bigImages }" varStatus="status">
						<a href="${bigImage.linkUrl}"> <c:if
								test="${status.count == 1 }">
								<img alt="${bigImage.imageTitle }" height="450"
									title="#htmlcaption${status.index }"
									src="${image_domain }${bigImage.origImage }" />

							</c:if> <c:if test="${status.count != 1 }">
								<img src="${cpath}/resources/portal/img/grey.gif"
									alt="${bigImage.imageTitle }" height="450"
									title="#htmlcaption${status.index }"
									data-src="${image_domain }${bigImage.origImage }" />
							</c:if> <%-- 
                    		<img src="${cpath }${upload_image_root}${bigImage.imageUrl }" data-thumb="${cpath }${bigImage.imageUrl }" 
                    		height="450" title="#htmlcaption${status.index }" alt="${bigImage.imageTitle }" />
                    		 --%></a>
					</c:forEach>
				</div>

				<c:forEach var="bigImage" items="${bigImages }" varStatus="status">
					<div id="htmlcaption${status.index }" class="nivo-html-caption">
						<h3>${bigImage.imageTitle }</h3>
						<hr />
						<br />
						<h1>${bigImage.imageDesc }</h1>
					</div>
				</c:forEach>
			</div>
		</div>
		<style>
.nivoSlider {
	height: 450px;
}

.slider-wrapper {
	overflow: hidden;
}

.nivo-caption {
	height: 90px;
	text-align: center;
	filter: progid :         DXImageTransform.Microsoft.Alpha (        
		opacity =  
		      70 );
	*filter: alpha(opacity =         70);
}

*+html .slider-wrapper {
	position: relative;
	overflow: hidden;
}

.nivo-caption h3 {
	text-align: center;
	height: 40px;
	font-weight: normal;
	font-size: 30px;
	line-height: 40px;
}

.nivo-caption hr {
	color: White;
	width: 570px;
	margin: 0 auto;
	display: block;
}

.nivo-caption h1 {
	text-align: center;
	font-size: 14px;
	font-weight: normal;
	color: White;
}
</style>
		<div id="container" class="container">
			<c:forEach var="category" items="${categoryList }" varStatus="status">
				<div class="index-news ${status.count == 1 ? '' : 'margin20' }">
					<div class="index-news-title">
						<div class="index-news-title-line-left">
							<hr />
						</div>
						<div class="index-news-title-name">
							<c:choose>
								<c:when test="${category.featureCategoryId eq -1 }">
									<a
										href="${cpath}/classify">${category.categoryName}&nbsp;></a>
								</c:when>
								<c:when test="${category.featureCategoryId eq -2 }">
									<a 
										href="${cpath}/destination">${category.categoryName}&nbsp;></a>
								</c:when>
								<c:when test="${category.featureCategoryId eq -3 }">
									<a
										href="${cpath}/hotel">${category.categoryName}&nbsp;></a>
								</c:when>
								<c:otherwise>
									<a
										href="${cpath}/classify/item/${category.featureCategoryId}?p=1">${category.categoryName
										}&nbsp;></a>
								</c:otherwise>
							</c:choose>

						</div>
						<div class="index-news-title-line-right">
							<hr />
						</div>
					</div>
					<div class="index-news-inner">
						<c:forEach var="item" items="${category.homeItems }">
							<c:choose>
								<c:when test="${category.featureCategoryId == -1 }">
									<c:set var="linkUrl" scope="page"
										value="${cpath}/classify/news/${item.linkId}" />
								</c:when>
								<c:when test="${category.featureCategoryId == -2 }">
									<c:set var="linkUrl" scope="page"
										value="${cpath}/destination/${item.linkId}" />
								</c:when>
								<c:when test="${category.featureCategoryId == -3 }">
									<c:set var="linkUrl" scope="page"
										value="${cpath}/hotel/${item.linkId}" />
								</c:when>
								<c:otherwise>
									<c:set var="linkUrl" scope="page"
										value="${cpath}/classify/item/${category.featureCategoryId}/${item.linkId}" />
								</c:otherwise>
							</c:choose>
							<div class="index-news-l">
								<div class="index-news-l-img" img-resize='true'>
									<a href="${linkUrl }"> <img class="lazy"
										data-original="${image_domain }${item.miniImg }"
										src="${cpath}/resources/portal/img/grey.gif"
										alt="${item.title}" /> </a>
								</div>
								<a href="${linkUrl }" title="${item.title}">
								<div class="index-news-l-title">
									${item.title}
								</div>
								<div class="index-news-l-line">
									<hr />
								</div>
								<div class="index-news-l-remark">
									${item.desc } 
								</div>
								</a>
							</div>
						</c:forEach>
					</div>
				</div>
				<div class=" clear"></div>
			</c:forEach>
		</div>
		<%-- 
		<c:set var="includeFrinds" scope="page" value="true"></c:set>
		--%>
		<%@include file="/ui/portal/footer.jsp"%>
	</div>
	<script type="text/javascript">
    $(window).load(function () {
        var w = $("#slider").find("img").first().width();
        var w2 = $("#slider").parent().width();
        $("#slider").css("width", w + "px");
        $("#slider").css("margin-left", -((w - w2) / 2) + "px");

        $('#slider').nivoSlider({
            directionNav: true,
            controlNav: false,
            pauseTime: 4000
            //这里的200000 自己修改 是自动切换时间
        });
        $(".nivo-prevNav").css("left", (15 + (w - w2) / 2) + "px");
        $(".nivo-nextNav").css("right", (15 + (w - w2) / 2) + "px");

    });
    </script>
</body>
<script src="${cpath}/resources/portal/js/lazyload/jquery.lazyload.js"></script>
<script type="text/javascript">
   	 $(function() {
   	     $("img.lazy").lazyload({
   	    	 load:function(){
   	    		var img = $(this);
   	    		var c = img.parent().parent();
   	    		var thisWidth = c.width();
				var thisHeight = c.height();
   	    		img.each(function() {
   					$(this).load(function() {
   						var childImgWidth = $(this).width();
   						var childImgHeight = $(this).height();
   						SetResize(thisHeight, thisWidth, childImgHeight,
   								childImgWidth, $(this));
   					});
   					$(this).each(function() {
   						if (this.complete) {
   							$(this).trigger('load');
   						}
   					});
   				});
   	    	 }
   	     });
   	  });
   	function SetResize(divHeight, divWidth, imgHeight, imgWidth, img) {
        var c = divHeight - imgHeight;
        var d = divWidth - imgWidth;
        if (divHeight == imgHeight && divWidth == imgWidth) {
            //完全一致
            img.css("height", imgHeight);
            img.css("width", imgWidth);
        }

        if (divHeight >= imgHeight && divWidth >= imgWidth) {
            //div完全包括img
            img.css("height", imgHeight);
            img.css("margin-left", (d / 2) + "px");
            img.css("margin-top", (c / 2) + "px");
        } else if (divHeight < imgHeight && divWidth < imgWidth) {
            //img 完全超出div
            //根据宽高比  如果图片的宽高比 > div的宽高比 按高度压缩
        	var divScale = divWidth / divHeight;
            var imgScale = imgWidth / imgHeight;
            if (imgScale >= divScale) {
                img.css("height", divHeight);
                var d = img.width() - divWidth;
                //保证居中
                img.css("margin-left", (-(d / 2)) + "px");

            } else {
                img.css("width", divWidth);
                //保证居中
                var c = img.height() - divHeight;
                //alert(imgHeight * yScale + "   " + divHeight);
                img.css("margin-top", (-(c / 2)) + "px");
            }

        } else if (divHeight >= imgHeight && divWidth < imgWidth) {
            //div的高度大于等于图片的高度 但是div的宽度小于图片的宽度

            img.css("height", imgHeight);
            img.css("margin-left", (d / 2) + "px");
            img.css("margin-top", (c / 2) + "px");
        } else if (divHeight < imgHeight && divWidth >= imgWidth) {
            //div的高度大于图片的高度 但是div的宽度小于等于图片的宽度

            img.css("width", imgWidth);
            img.css("margin-left", (d / 2) + "px");
            img.css("margin-top", (c / 2) + "px");
        }
    }
   </script>
   
   <%-- 
   <script>document.write(unescape('%3Cdiv id="hm_t_13300"%3E%3C/div%3E%3Cscript src="http://crs.baidu.com/t.js?siteId=2ebd5a67fd89f40e5d3384f8a723088f&planId=13300&referer=') + encodeURIComponent(document.referrer) + '&title=' + encodeURIComponent(document.title) + '&rnd=' + (+new Date) + unescape('"%3E%3C/script%3E'));</script>
--%>
</html>
